package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 备件规格信息表
 * </p>
 *
 * @author WEN
 * @since 2023-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjSpareSpecInfo对象", description="备件规格信息表")
public class ZjSpareSpecInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "备件表ID")
    private Long spareId;

    @ApiModelProperty(value = "规格名称")
    private String name;

    @ApiModelProperty(value = "是否启用：0-否，1-是")
    @TableField("is_enabled")
    private Boolean enabled;

    @ApiModelProperty(value = "规格图片路径")
    private String image;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "过保价格")
    private BigDecimal overPrice;

    @ApiModelProperty(value = "质保周期/天数")
    private Integer warrantyDay;

    @ApiModelProperty(value = "SKU编码")
    private String code;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
